package com.puny.mvc.views
{
	import flash.display.MovieClip;
	
	//This is a class for beforeOpen, procedureOpen, and afterOpen
	public class OpenView extends View
	{
		private var _mc:MovieClip;
		public var _before:Boolean = false;
		public var _after:Boolean = false;
		public var _count:uint = 100;
		public function OpenView()
		{
			super("assets/scholastic_choose_chara.swf");
		}
		
		override protected function setup():void {
			_mc = getMovieClip("Jenny");
		}
		
		override protected function beforeOpen():void {
			_before = true;
		}
		
		override protected function afterOpen():void {
			_after = true;
		}
		
		override protected function procedureOpen():Boolean {
			_count--;
			if (_count == 0) {
				trace("done");
			}
			return _count > 0;
		}
	}
}